package com.xzh.test;

import java.util.Scanner;

public class kaoshi_5 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.print("请输入本月利润：");
        double profit=sc.nextDouble();
        if (profit<=100000){
            System.out.println("奖金为："+profit/10);
        } else if (profit<=200000) {
            System.out.println("奖金为："+(10000+(profit-100000)*0.075));
        } else if (profit<=400000) {
            System.out.println("奖金为："+(10000+7500+(profit-200000)*0.05));
        } else if (profit<=600000) {
            System.out.println("奖金为："+(10000+7500+10000+(profit-400000)*0.03));
        } else if (profit<=1000000) {
            System.out.println("奖金为："+(10000+7500+10000+6000+(profit-600000)*0.015));
        }else {
            System.out.println("奖金为："+(10000+7500+10000+6000+6000+(profit-1000000)*0.01));
        }

    }
}
